#pragma once
#include"stdafx.h"
#include"URL.h"
#include"HttpWebResponse.h"
#include"WebHeaderCollection.h"
class Http
{
private:
	Http() {};
	~Http() {};
public:
	static bool Post(string url, string postData, string cookies, bool allowRedirect, HttpWebResponse* &respond);
	static bool Post(URL *url, WebHeaderCollection *headers,byte* postData,size_t postDataLength, bool allowRedirect,HttpWebResponse* &respond);
	static void ByteAdd(byte * bytes1, size_t bytes1_len, byte * bytes2, size_t bytes2_len, byte *& result, size_t & result_len);
};

